/*
 * @Description: In User Settings Edit
 * @Author: your name
 * @Date: 2019-10-14 10:31:22
 * @LastEditTime: 2019-10-14 21:03:48
 * @LastEditors: Please set LastEditors
 */
import Vue from 'vue'
import Router from 'vue-router'
import Home from '../components/Home.vue'
import Finances from '../components/finances.vue'
import Stocks from '../components/Stocks.vue'
import Aboutme from '../components/Aboutme.vue'
import Account from '../components/Account.vue'
import Announcement from '@/components/Announcement.vue'
import Introduction from '@/components/Introduction.vue'
import Protocol from '@/components/Protocol.vue'
import Help from '@/components/Help.vue'
import Report from '@/components/Report.vue'
import Recruitment from '@/components/Recruitment.vue'
import Contact from '@/components/Contact.vue'
import Mydata from '@/components/Mydata.vue'
import Guangg from "../tool/gaocom.vue"
import Login from '../components/Log.vue'
import Sinin from '../components/Sin.vue'
// 登录注册
import Treelgin from '../components/Tree.vue'
// 第三方登陆
// 我的账户
import Certification from '@/components/Certification.vue'
import Massage from '@/components/Massage.vue'
import Log2 from '@/components/Log2.vue'
import Financial from '@/components/Financial.vue'
import StocksEnd from '@/components/StocksEnd.vue'
// 保证金
import Margin from '../components/Margin.vue'
// 分成资格
import Qualifications from '../components/qualifications.vue'
// 修改密码
import Pass from '../components/Password.vue'
// 帮助
import helpStocks from '../components/help2.vue';
import helpgup from '../components/help3.vue'
// 推广
import Tuigang from '../components/Promotion.vue'
Vue.use(Router)
export default new Router({
  routes: [{
      path: '/',
      redirect: '/index'
    },

    {
      path: '/Stocks',
      component: Stocks
    },
    {
      path: "/index",
      redirect: "/index/guangao"
    }, {
      path: "/login",
      component: Login
    },
    {
      path: "/sinin",
      component: Sinin
    },
    {
      path: "/treein",
      component: Treelgin
    },
    {
      path: '/index',
      component: Home,
      children: [{
          path: 'guangao',
          component: Guangg
        },
        {
          path: 'friend',
          component: Guangg
        }
      ]
    },
    {
      path: '/Finances',
      component: Finances
    },
    {
      path: '/Aboutme',
      redirect: '/Aboutme/Announcement',
      component: Aboutme,
      children: [{
          path: 'Announcement',
          component: Announcement
        },{
          path:'helpStocks',
          component:helpStocks
        },
        {
          path:'helpSuggest',
          component:helpgup
        },
        {
          path: 'Introduction',
          component: Introduction
        },
        {
          path: 'Protocol',
          component: Protocol
        },
        {
          path: 'Help',
          component: Help
        },
        {
          path: 'Report',
          component: Report
        },
        {
          path: 'Recruitment',
          component: Recruitment
        },
        {
          path: 'Contact',
          component: Contact
        },
      ]
    },
    {
      path: '/Account',
      component: Account,
      redirect: '/Account/Mydata',
      children: [{
          path: 'Mydata',
          component: Mydata
        },{
          path:'Promotion',
          component:Tuigang,
        },

        {
          path: 'Certification',
          component: Certification
        },
        {
          path: 'Massage',
          component: Massage
        },
        {
          path: 'Log2',
          component: Log2
        },
        {
          path: 'Financial',
          component: Financial
        },
        {
          path: 'StocksEnd',
          component: StocksEnd
        },
        {
          path: 'Margin',
          component: Margin
        }, {
          path: 'quali',
          component: Qualifications
        }, {
          path: 'removepath',
          component: Pass
        }
      ]
    }
  ]
})
